home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gzip 1.2.2 / cextras-1.0 / String-extras.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  1.4 KB  |  54 lines  |  [TEXT/MPS ]

  1. /*
  2.     String-extras.h
  3.     
  4.     There are two ways to use this file.
  5.  
  6.         1. use `#include <String-extras.h>'
  7.         
  8.             or
  9.         
  10.         2. Copy these declarations to the end of the stock String.h file
  11.  
  12.     Copyright (c) 1993 Anthony C. Ard.
  13.  
  14.     This program is free software; you can redistribute it and/or
  15.     modifiy it under the terms of the GNU General Public License
  16.     as published by the Free Software Foundation; either version 2
  17.     of the License, or (at your option) any later version.
  18.     
  19.     This program is distributed in the hope that it will be useful,
  20.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22.     GNU General Public License for more details.
  23.     
  24.     You should have received a copy of the GNU General Public License
  25.     along with this program; if not, write to the Free Software
  26.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27. */
  28.  
  29. #ifndef String-extras_h
  30. #define String-extras_h
  31.  
  32. #include <StdLib.h>
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. char *index( const char *s1, int c );
  39. char *rindex( const char *s1, int c );
  40. void *bcopy( const void *a1, void *a2, size_t size );
  41. void *bzero( void *a1, size_t size );
  42. int bcmp( const void *a1, const void *a2, size_t n );
  43.  
  44. int strcasecmp( char *s1, char *s2 );
  45. int strncasecmp( char *s1, char *s2, int n );
  46.  
  47. char *strdup( const char *src );
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif String-extras_h
  54.